{% extends "usercenter/base.html" %}
{% block content %}
  <div class="col-md-2">&nbsp;</div>
  <div class="col-md-8">
    <div class="hidden-xs alert alert-success text-center">
      <p>
        <h5>找回密码</h5>
      </p>
    </div>
    <div class="well">
      <form action="." class="form-horizontal" method="post" role="form">{% csrf_token %}
        {% for field in form %}
          <div class="form-group {% if field.errors %}has-error{% endif %}">
            <label class="share-label col-sm-2" for="{{field.id_for_label}}">{{field.label|force_escape}}</label>
            <div class="col-sm-10">
              {% if forloop.first %}
                <input autofocus="" class="form-control" id="{{field.id_for_label}}" name="{{field.html_name}}" type="text"/>
              {% else %}
                <input class="form-control" id="{{field.id_for_label}}" name="{{field.html_name}}" type="text"/>{% endif %}
              {% if field.errors %}
                <span class="help-block">{{field.errors.as_text|force_escape}}</span>
              {% endif %}
            </div>
          </div>
        {% endfor %}
        <button class="btn btn-large btn-primary btn-block" type="submit">提交</button>
      </form>
    </div>
  </div>
  <div class="col-md-2">&nbsp;</div>
{% endblock %}
